#ifndef WF_ZOOMAUTO_H
#define WF_ZOOMAUTO_H

#include "pf_actioninterface.h"
#include "gui_export.h"

/**
 * This action triggers an auto zoom.
 *
 */
class GUI_EXPORT WF_ZoomAuto : public PF_ActionInterface {
	Q_OBJECT
public:
    WF_ZoomAuto(PF_Container& container,
                      PF_GraphicView& graphicView,
                      bool keepAspectRatio=true);
    ~WF_ZoomAuto() {}

	static QAction* createGUIAction(LX_Define::ActionType /*type*/, QObject* /*parent*/);

    virtual void init(int status=0);
    virtual void trigger();

protected:
    bool keepAspectRatio;
};

#endif
